import { Component } from "react";
import { Consumer } from "../component"; //引入Consumer
import Buschild from "../buschild/buschild";


class bus extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }
  render() {
    return (
      <div>
        我是bus---
        <div>
          <Consumer>{(value) => <h1>我是接收祖辈的值：{value}</h1>}</Consumer>
          <div>-----------buschilid</div>
          <Buschild></Buschild>
        </div>
        我是bus---
      </div>
    );
  }
}

export default bus;
